<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<head>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<script type="text/javascript" src="<%=basePath %>js/jquery-1.9.1.min.js"></script>
<link rel="stylesheet" href="<%=basePath %>css/buttons.css" />
<link rel="stylesheet" href="<%=basePath %>css/bootstrap.css"/>
<script type="text/javascript" src="<%=basePath %>js/buttons.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript">
$(document).ready(function(){
	$("#exit").click(function(){
		location.href = "<%=basePath%>personalcredit.jsp";
	});
}); 
</script>
<script type="text/javascript">
function addinfo(fid){
	location.href = "<%=basePath %>addPersonalcredit.jsp?fid=" + fid ;
}
</script>
<body>
	<center>
		<form action="" method="post" role="form">
			<table border="0"  class="table table-hover" align="center" style="width: 600px;" >
				<tr>
					<br>
					<td>用户编号</td><td>次数</td><td>违规类型</td><td>违规原因</td><td>解除时间</td>
					<c:forEach items="${badbookingList }" var="badbook">
						<tr>
							<td>${badbook.fid }</td>
							<td>${badbook.fcount }</td>
							<td>${badbook.ftype }</td>
							<td>${badbook.fbz }</td>
							<td><fmt:formatDate value="${badbook.flocktodate}" type="both" dateStyle="default" timeStyle="default"/></td>
						</tr>
					</c:forEach>
				</tr>					
			</table>
			<table border="0" class="table table-hover" align="center" style="width: 600px;" >
				<tr>
					<td>
						<input type="button" value="添加违规记录" id="add" class="button button-pill button-primary" 
						style="width: 120px; height: 30px; font-size: 10px;" onclick="addinfo('${userid}')"/>
						&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="button" value=" 返  回 " id="exit" class="button button-pill button-primary"
									style="width: 120px; height: 30px; font-size: 10px;"/>
					</td>
				</tr>
			</table>
		</form>
	</center>
</body>
</html>